package com.example.ioc.context;

import com.example.common.utils.Statistics;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.lang.NonNull;

/**
 * {@link org.springframework.context.annotation.Import}
 */
@Slf4j
public class LDeferredImportSelector implements DeferredImportSelector {

    private LDeferredImportSelector(){
        Statistics.logInfo(log);
    }

    @NonNull
    @Override
    public String[] selectImports(@NonNull AnnotationMetadata importingClassMetadata) {
        Statistics.logInfo(log, "selectImports", importingClassMetadata);
        return new String[0];
    }
}
